package com.ruoyi.project.business.service;

import java.util.List;
import com.ruoyi.project.business.domain.BusinessHarvest;

/**
 * 收成Service接口
 * 
 * @author ruoyi
 * @date 2020-10-22
 */
public interface IBusinessHarvestService 
{
    /**
     * 查询收成
     * 
     * @param id 收成ID
     * @return 收成
     */
    public BusinessHarvest selectBusinessHarvestById(Long id);

    /**
     * 查询收成列表
     * 
     * @param businessHarvest 收成
     * @return 收成集合
     */
    public List<BusinessHarvest> selectBusinessHarvestList(BusinessHarvest businessHarvest);

    /**
     * 新增收成
     * 
     * @param businessHarvest 收成
     * @return 结果
     */
    public int insertBusinessHarvest(BusinessHarvest businessHarvest);

    /**
     * 修改收成
     * 
     * @param businessHarvest 收成
     * @return 结果
     */
    public int updateBusinessHarvest(BusinessHarvest businessHarvest);

    /**
     * 批量删除收成
     * 
     * @param ids 需要删除的收成ID
     * @return 结果
     */
    public int deleteBusinessHarvestByIds(Long[] ids);

    /**
     * 删除收成信息
     * 
     * @param id 收成ID
     * @return 结果
     */
    public int deleteBusinessHarvestById(Long id);

    /**
     * 根据服务订单ID查看收成
     * @param serviceId
     * @return
     */
    public BusinessHarvest  getinfobyservice(Long serviceOrderId);
}
